import { create } from "zustand";

export interface IMainContent {
  foodType: string;
  inspectionTime: string;
  personCount: number;
}

export type TUseCheckAndFillInStore = {
  mainContent: IMainContent;
  setMainContent: (val: IMainContent) => void;
};

export const useCheckAndFillInStore = create<TUseCheckAndFillInStore>(
  (set) => ({
    mainContent: {
      foodType: "测试",
      inspectionTime: "2023-12-25",
      personCount: 1,
    },
    setMainContent: (mainContent) => set({ mainContent }),
  })
);
